Skip to main content

Cancel Plan

Cancel a specific existing subscription plan.

POST https://api.spotflow.co/api/v1/plans/:plan-id/cancel

Headers

authorization
String

Bearer SECRET_KEY
Include your secret key in the request header as a Bearer token for authorization. Unauthorized requests will result in a 401 HTTP status code.

Path Parameters

plan-id int32

This is the unique ID of the subscription plan you want to cancel.

Sample Response

200 OK

{
"id": "acbabde0-1293-4b8b-9eb9-7e532e34d9bf",
"title": "My Nutrifit",
"frequency": "DAILY",
"internalReference": "ref-prod",
"status": "cancelled",
"regions": [
"Nigeria",
"Ghana"
],
"subscribers": 0,
"subscriptions": 0,
"createdAt": "2025-04-24T13:50:17Z",
"pricingOptions": [
{
"amount": 100,
"currency": "NGN"
},
{
"amount": 10,
"currency": "GHS"
}
]
}